package org.yefei.homeworkday15.six;


public class TestDrawProgram {

	public static void main(String[] args) {
		DrawProgram d = new DrawProgram("西瓜App");
		Graphics t = new Triangle("三角形", 7, 8, 9);
		d.cal(t);
		System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
		Graphics c = new Circle("圆形", 9);
		d.cal(c);
		System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
		Graphics r = new Rectangle("长方形", 7, 10);
		d.cal(r);
	}

}
